<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title><?php if (!include_slot('title')) : ?>CorpPon<?php endif ?></title>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <?php if (!$sf_user->isAuthenticated()):
            $sf_user->getAttributeHolder()->remove('id_user');
            $sf_user->getAttributeHolder()->remove('name');
            $sf_user->getAttributeHolder()->remove('login');
            $sf_user->getAttributeHolder()->remove('id_account');
	  endif;
    ?>
<!--[if IE]>
<style type="text/css" media="screen">
	.back-pic-other a {
				color:#56656c;
				position:relative; top:-8px; left:-9px;
				}</style>
<![endif]-->   
<script type="text/javascript">

$(document).ready(function(){
    /*Funcion para mostrar/ocultar el div de form*/
      $("#effect1").mouseover(function(){
 
          /*Codigo agregado Final*/
           if ($("#efecto1").is(":visible")){
                $("#efecto1").slideUp("medium");
            }
            else{
                    $("#efecto1").slideDown("medium");
                }
         });
		 
		   $("#effect2").mouseover(function(){
 
          /*Codigo agregado Final*/
           if ($("#efecto2").is(":visible")){
                $("#efecto2").slideUp("medium");
            }
            else{
                    $("#efecto2").slideDown("medium");
                }
         });
		 
		   $("#effect3").mouseover(function(){
 
          /*Codigo agregado Final*/
           if ($("#efecto3").is(":visible")){
                $("#efecto3").slideUp("medium");
            }
            else{
                    $("#efecto3").slideDown("medium");
                }
         });
		 
		  $("#loginbox").click(function(){

          if ($("#Cont_login").is(":visible")){
                $("#Cont_login").slideUp("medium");
                return false;
            }
           else{
		  $("#Cont_login").slideDown("medium");
          return false;}
         });
     });

function cerrarLogin()
{
    $("#Cont_login").slideUp("medium");
}

  </script>

<script>
	DD_roundies.addRule('.corner', '10px', true);
	DD_roundies.addRule('.product', '10px', true);
	DD_roundies.addRule('.more-button', '5px', true);
	DD_roundies.addRule('.know-button', '5px', true);
	DD_roundies.addRule('.premium-product-list', '10px', true);
	DD_roundies.addRule('.normal-product-list', '10px', true);

	
</script>

  <!--[if IE ]>
    <style>
    #Cont_login {background: #897a42;}
   
  	</style>
    <![endif]-->
     <!--[if IE 8]>
    <style>
   
    #top-wrapper {
    left:1px;
    }
  	</style>
    <![endif]-->

  
  </head>
  <body>
<div id="top-menu">

<div id="space-min">
<div id="wrapper-menu">
<ul>
             <li class="first"><span class="icon-list"></span><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/'.$sf_params->get('companyNameUrl').'/products'; else : echo url_for('products/index'); endif; ?>">Product Deals</a></li>
      <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/content/about/'.$sf_params->get('companyNameUrl'); else : echo '/content/about'; endif; ?>">ABOUT US</a></li>
            	
      <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/content/faq/'.$sf_params->get('companyNameUrl'); else : echo '/content/faq'; endif; ?>">FAQ</a></li>
      <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('content/contact').'/'.$sf_params->get('companyNameUrl'); else : echo url_for('content/contact'); endif; ?>">Contact us</a></li>
      
        <li id="loginbox">
		<?php if ($sf_user->isAuthenticated()) : ?>
        <a href="#">Mi cuenta</a>
        <?php else : ?> 
        <a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/register/'.$sf_params->get('companyNameUrl'); else : echo url_for('users/register'); endif; ?>" class="sign-up">Sign Up / Register</a>
        <?php endif;  ?>
        </li>     
                
               
    </ul>
   
    
    <div id="wrapper-logo" class="corner"> <a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/'.$sf_params->get('companyNameUrl'); else : echo url_for('@homepage'); endif; ?>"><img src="/images/template/logo-corpon-byw.png" width="237" height="57" /></a></div>
</div>
</div>
</div>
<div id="Cont_login">
<?php if (!$sf_user->isAuthenticated()) : ?>
  	<form name="form_login" id="form_login" action="<?php echo url_for('users/login') ?>" method="post" class="corner"> 
          <div id="formulario">
           <span class="login-user"> Email: <input type="text" name="email" id="email" class="input"/></span>
           
            <span class="password"> Password: <input type="password" name="password" id="password" class="input"/></span>
            <input type="submit" class="button" value="Enter" onclick="return checkLogin(this.form);" />
          </div>
            <a href="<?php echo url_for('users/password') ?>">Forgot your Password?</a>          <a href="<?php if ($sf_params->get('companyNameUrl')) : echo 'register/'.$sf_params->get('companyNameUrl'); else : echo url_for('users/register'); endif; ?>">Register</a>
          <input type="hidden" name="web" value="<?php echo sfContext::getInstance()->getRouting()->getCurrentInternalUri(); ?>"/>
          <a href="#" onclick="cerrarLogin();">X Close</a>
        </form>
 <?php else : ?> 
 <div id="menu-profile">
 <ul>
  <span class="msg-profile">Hi <a href="<?php echo url_for('users/profile') ?>"><?php echo $sf_user->getAttribute('name') ?></a> &gt;</span>
    
        
         <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/shoppingCart/'.$sf_params->get('companyNameUrl'); else : echo url_for('products/shoppingCart'); endif; ?>">My Cart</a></li>
         
          <?php if ($sf_user->hasCredential('Admin')): ?>
            <li class="corner"><a href="<?php echo url_for('accounts/index') ?>">Accounts</a></li>
            <li class="corner"><a href="<?php echo url_for('invoices/index') ?>">Invoices</a></li>
            <li><a href="<?php echo url_for('products/productsAdmin') ?>">Admin Products</a></li>

            <li><a href="<?php echo url_for('shipping/index') ?>">Shipping Amounts</a></li>
        
          <?php endif; ?>
         
          <?php if ($sf_user->hasCredential('Admin') || $sf_user->hasCredential('Company')): ?>
          <li><a href="<?php echo url_for('users/index') ?>">Users</a>
          <?php if ($sf_user->hasCredential('Regular User') || $sf_user->hasCredential('Company')): ?></li>
                  <?php /* ?>  <!-- | <a href="<?php echo url_for('invoices/myinvoinces') ?>">My Invoices</a>--><?php */ ?>
           
          <?php endif; ?>
          <?php endif; ?>
            <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/myorders/'.$sf_params->get('companyNameUrl'); else : echo url_for('invoices/myOrders'); endif; ?>">My Orders</a></li>
         <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('users/logout?companyNameUrl='.$sf_params->get('companyNameUrl')); else : echo url_for('users/logout'); endif; ?>">Logout</a> </li>
</ul>
 </div>
 
 <?php endif;  ?>
  
  </div>


</div>
<div id="wrapper-content">
<div id="banner-top" class="corner">Discounts up to 80% Off!</div>


<div id="content">
<div style="height:100px;"></div>
<?php echo $sf_content ?></div>
</div>
<div id="footer">
<div id="wrapper-footer">
<ul>
            <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/'.$sf_params->get('companyNameUrl').'/products'; else : echo url_for('products/index'); endif; ?>">PRODUCT DEALS</a></li>
            <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/content/about/'.$sf_params->get('companyNameUrl'); else : echo '/content/about'; endif; ?>">ABOUT US</a></li>
            <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('content/contact').'/'.$sf_params->get('companyNameUrl'); else : echo url_for('content/contact'); endif; ?>">CONTACT US</a></li>
            <li><a href="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('content/terms').'/'.$sf_params->get('companyNameUrl'); else : echo url_for('content/terms'); endif; ?>">TERMS & CONDITIONS</a></li>
        </ul>
		
	<div id="copyright">ALL RIGHTS RESERVED CORPPON 2011<br /><span class="netosfera">NETOSFERA.COM</span></div>
</div>
</div>







    
  </body>
</html>
